package com.heima.apis.comment;


import com.heima.model.article.dtos.ArticleCommentDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-comment")
public interface ICommentClient {
    @PostMapping("/api/v1/comment/commentLike/{authorId}")
    ResponseResult commentLike(@RequestBody ArticleCommentDto dto, @PathVariable Integer authorId);

    @PostMapping("/api/v1/comment/manage/saveCommentRepay/{authorId}/{name}")
    public ResponseResult saveCommentRepay(@RequestBody ArticleCommentDto dto,@PathVariable Integer authorId,@PathVariable String name);
}
